package org.jet.emall.prod.po;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_customer_info")
@ApiModel(value="CustomerInfo对象", description="用户信息表")
public class CustomerInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员ID")
    private Long customerId;

    @ApiModelProperty(value = "用户真实姓名")
    private String realname;

    @ApiModelProperty(value = "证件类型：1 身份证, 2 军官证, 3 护照")
    private Byte identityCardType;

    @ApiModelProperty(value = "证件号码")
    private String identityCardNo;

    @ApiModelProperty(value = "移动电话")
    private String mobilePhone;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @ApiModelProperty(value = "性别: 1-男性，0-女性")
    private Byte gender;

    @ApiModelProperty(value = "用户积分")
    private Integer point;

    @ApiModelProperty(value = "用户注册时间")
    private LocalDateTime registerTime;

    @ApiModelProperty(value = "出生年月日")
    private LocalDate birthDate;

    @ApiModelProperty(value = "会员等级: 1 普通会员, 2 青铜, 3 白银, 4 黄金, 5 钻石")
    private Byte levelId;

    @ApiModelProperty(value = "用户余额")
    private Long balance;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除: 1-已删除, 0-未删除")
    private Byte deleted;

    @ApiModelProperty(value = "最后修改时间")
    private LocalDateTime modifiedTime;


}
